<?php
/**
 * @Copyright Copyright (C) 2010-2012
 * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
 + Created by:	Webit Solution
 * Company:		Webit Solution
 + Contact:		www.webits.asia, developer@webits.asia
 * Created on:	Mar 15, 2011
 ^
 + Project: 		WRecruit
 * File Name:	admin-----/views/applications/tmpl/jobtypes.php
 ^ 
 * Description: Default template for job types
 ^ 
 * History:		NONE
 ^ 
 */
 
// this is the basic listing scene when you click on the component 
// in the component menu
defined('_JEXEC') or die('Restricted access');
JRequest :: setVar('layout', 'currency');
$_SESSION['cur_layout']='currency';

?>
<table width="100%">
	<tr>
		<td align="left" width="175" valign="top">
			<table width="100%">
				<tr>
					<td style="vertical-align:top;">
						<?php include_once('components/com_wrecruit/views/menu.php'); ?>
					</td>
				</tr>
			</table>
		</td>
		<td width="100%" valign="top">
			<form action="index.php" method="post" name="adminForm" id="adminForm">
				<table class="adminlist" border="0">
					<thead>
						<tr>
							<th width="20"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->items); ?>);" /></th>
							<th  width="60%" class="title"><?php echo JText::_('JS_TITLE'); ?></th>
							<th><?php echo JText::_('JS_CURRENCY'); ?></th>
							<th><?php echo JText::_('JS_DEFAULT'); ?></th>
							<th><?php echo JText::_('JS_PUBLISHED'); ?></th>
						</tr>
					</thead>
					<?php
					jimport('joomla.filter.output');
					$k = 0;
					for ($i=0, $n=count( $this->items ); $i < $n; $i++)
					{
						$row =& $this->items[$i];
						$checked = JHTML::_('grid.id', $i, $row->id);
						$link = JFilterOutput::ampReplace('index.php?option='.$this->option.'&task=edit&cid[]='.$row->id);
						?>
						<tr valign="top" class="<?php echo "row$k"; ?>">

							<td><?php echo $checked; ?></td>
							<td><a href="<?php echo $link; ?>"><?php echo $row->title; ?></a></td>
							<td align="center"><?php echo $row->symbol; ?></td>
							<td align="center">
								<?php if($row->default == 1 ) { ?> 
									<img src="../components/com_wrecruit/images/default.png" width="16" height="16" border="0" alt="Default" /></a>
								<?php }else{ ?>
									<a href="javascript:void(0);" onclick="return listItemTask('cb<?php echo $i;?>',' makedefaultcurrency')">
									<img src="../components/com_wrecruit/images/notdefault.png" width="16" height="16" border="0" alt="Not Default" /></a>
								<?php } ?>	
							</td>	
							<td align="center"><?php  $img = $row->status ? 'tick.png' : 'publish_x.png';?><img src="../components/com_wrecruit/images/<?php echo $img;?>" width="16" height="16" border="0" alt="<?php if(isset($alt)){ echo $alt;} ?>" /></td>
						</tr>
						<?php
						$k = 1 - $k;
					}
					?>
					<tr> <td colspan="9"> 	<?php echo $this->pagination->getListFooter(); ?> 	</td> </tr>
				</table>
				<input type="hidden" name="option" value="<?php echo $this->option; ?>" />
				<input type="hidden" name="task" value="" />
				<input type="hidden" name="boxchecked" value="0" />
			</form>
		</td>
	</tr>
	<tr>
		<td colspan="2" align="left" width="100%"  valign="top">
			<table width="100%" style="table-layout:fixed;">
				<tr><td style="vertical-align:top;"> <?php include_once('components/com_wrecruit/views/jscr.php'); ?> </td> </tr>
			</table>
		</td>
	</tr>
	
</table>							
